package com.cq.hd.task.web.job;

import com.cq.hd.order.api.TbOrderRefundApi;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class OrderRefundTask {

    @Resource
    private TbOrderRefundApi orderRefundApi;

    // 扫描阶梯价返现
    @XxlJob("scanStepPriceRefundTask")
    public void scanStepPriceRefundTask() {
        log.info("扫描阶梯价返现记录=====>开始");
        orderRefundApi.scanStepPriceRefundTask();
        log.info("扫描阶梯价返现记录=====>开始");
    }

    @XxlJob("scanWaitRefundTask")
    public void scanWaitRefundTask() {
        orderRefundApi.scanWaitRefundTask();
    }

}
